home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Archives / ARexxTools / fpl70.lha / src / smakefile < prev    next >
Encoding:
Makefile  |  1994-04-11  |  4.4 KB  |  125 lines

  1. # $VER: fpl.library makefile v2.0 93-03-24
  2.  
  3. ########################################################################
  4. #                                                                      #
  5. # fpl.library - A shared library interpreting script langauge.         #
  6. # Copyright (C) 1992-1994 FrexxWare                                    #
  7. # Author: Daniel Stenberg                                              #
  8. #                                                                      #
  9. # This program is free software; you may redistribute for non          #
  10. # commercial purposes only. Commercial programs must have a written    #
  11. # permission from the author to use FPL. FPL is *NOT* public domain!   #
  12. # Any provided source code is only for reference and for assurance     #
  13. # that users should be able to compile FPL on any operating system     #
  14. # he/she wants to use it in!                                           #
  15. #                                                                      #
  16. # You may not change, resource, patch files or in any way reverse      #
  17. # engineer anything in the FPL package.                                #
  18. #                                                                      #
  19. # This program is distributed in the hope that it will be useful,      #
  20. # but WITHOUT ANY WARRANTY; without even the implied warranty of       #
  21. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                 #
  22. #                                                                      #
  23. # Daniel Stenberg                                                      #
  24. # Ankdammsgatan 36, 4tr                                                #
  25. # S-171 43 Solna                                                       #
  26. # Sweden                                                               #
  27. #                                                                      #
  28. # FidoNet 2:201/328    email:dast@sth.frontec.se                       #
  29. #                                                                      #
  30. ########################################################################
  31.  
  32. LIBRARY = fpl.library    # library version
  33. TARGET2 = FPL        # executable file version
  34. SFPL    = SFPL        # library using executable
  35.  
  36. #
  37. # These flags build the .library:
  38. #
  39. FLAGS = STRINGMERGE UNSIGNEDCHAR NOSTKCHK NOSTANDARDIO DATA=NEAR IGNORE=183\
  40. NOVERSION DEFINE=AMIGA DEFINE=SHARED LIBCODE\
  41. OPTIMIZE CPU=68020
  42. #DEBUG=S
  43. #DEFINE=DEBUG
  44.  
  45.  
  46.  
  47. ASMFLAGS = IDIR=Include: ASSEMBLER
  48. LINKFLAGS = SC SD
  49. LIBS = LIB:sc.lib
  50. OBJS = libent.o libinit.o script.o numexpr.o hash.o statement.o liballoc.o\
  51.        memory.o frontend.o compile.o
  52. CC = sc
  53. ASM = sc
  54. LINK = slink
  55.  
  56. #
  57. # These flags build the file version:
  58. #
  59. #CFLAGS = STRINGMERGE UNSIGNEDCHAR STKCHK DATA=NEAR IGNORE=217+183 DEBUG=S\
  60. # STANDARDIO DEFINE=DEBUG DEFINE=AMIGA NOVERSION
  61. # DEFINE=SHARED DEFINE=SFPL # use these when building 'SFPL'
  62. #TARGETDEP2 = caller.o script.o numexpr.o hash.o statement.o
  63. #OBJS2 = LIB:c.o $(TARGETDEP2)
  64.  
  65. all: $(LIBRARY) $(SFPL)
  66.  
  67. $(LIBRARY): $(OBJS)
  68.       slink with <<
  69. LIBFD fpl.fd 
  70. to $(LIBRARY)
  71. FROM  $(OBJS)
  72. # lib:libent.o lib:libinit.o
  73. lib $(LIBS)
  74. noicons
  75. SD SC
  76. FWIDTH 20 PWIDTH 20 WIDTH 20
  77. map FPL.map H
  78. libid "fpl.library 7.0 (11.4.94)"
  79. libversion 7 librevision 0
  80. <
  81.     copy $(LIBRARY) LIBS: CLONE
  82.     copy FPL.h /include/libraries/ CLONE
  83.     copy FPL.h include:libraries/ CLONE
  84.  
  85.  
  86. $(TARGET2): $(TARGETDEP2)
  87.     $(LINK) SC SD FROM $(OBJS2) TO $(TARGET2) LIB $(LIBS)
  88.  
  89. $(SFPL): caller.o
  90.     $(LINK) SC SD FROM LIB:c.o caller.o to $(SFPL) LIB $(LIBS)
  91.   
  92. script.o: script.c script.h FPL.h
  93.     $(CC) $(FLAGS) $< SOURCEIS=FPL:src/script.c 
  94.  
  95. numexpr.o: numexpr.c script.h FPL.h
  96.     $(CC) $(FLAGS) $< SOURCEIS=FPL:src/numexpr.c 
  97.  
  98. hash.o: hash.c script.h FPL.h
  99.     $(CC) $(FLAGS) $< SOURCEIS=FPL:src/hash.c 
  100.  
  101. statement.o: statement.c script.h FPL.h
  102.     $(CC) $(FLAGS) $< SOURCEIS=FPL:src/statement.c 
  103.  
  104. frontend.o: frontend.c script.h FPL.h
  105.     $(CC) $(FLAGS) $< SOURCEIS=FPL:src/frontend.c 
  106.  
  107. compile.o: compile.c script.h FPL.h
  108.     $(CC) $(FLAGS) $< SOURCEIS=FPL:src/token/compile.c 
  109.  
  110. libinit.o: libinit.c
  111.     $(CC) $(FLAGS) $< SOURCEIS=FPL:src/libinit.c
  112.  
  113. liballoc.o: liballoc.a
  114.     $(CC) $(FLAGS) SOURCEIS=FPL:src/liballoc.a  $(ASMFLAGS) $<
  115.  
  116. libent.o: libent.a
  117.     $(CC) $(FLAGS) UNDERSCORE SOURCEIS=FPL:src/libent.a  $(ASMFLAGS) $<
  118.  
  119. memory.o: memory.c
  120.     $(CC) $(FLAGS) $< SOURCEIS=FPL:src/memory.c 
  121.  
  122. caller.o: caller.c FPL.h /include/pragmas/FPL_pragmas.h
  123.     $(CC) STRINGMERGE UNSIGNEDCHAR DATA=NEAR NOSTACKCHECK NOVERSION\
  124. DEFINE=AMIGA DEFINE=SHARED DEFINE=SFPL IGNORE=183 $< # DEBUG=S
  125.